/**
 * Auto gen via dbpojo-gen.
 */
package com.us.usws.site.console.action;

import java.util.List;

import javax.inject.Inject;

import com.us.usws.model.domain.video.VideoPlayLog;
import com.us.usws.service.ro.VideoPlayLogROService;
import com.us.usws.support.uitls.JSONDataUtil;

/**
 * Struts2 action
 * @author robot
 */
public class VideoPlayLogAction extends BaseAction {

	private static final long serialVersionUID = 1L;

	private VideoPlayLog videoPlayLog;

	@Inject
	private VideoPlayLogROService videoPlayLogROService;

	/**
	 * ajax load the list of VideoPlayLog
	 */
	public void ajaxLoadVideoPlayLogs() {
		List<VideoPlayLog> videoPlayLogs = videoPlayLogROService.getAllVideoPlayLogs();
		getOut().println(JSONDataUtil.extJsonSupportPage(videoPlayLogs, videoPlayLogs.size()));
	}

	public void setVideoPlayLog(VideoPlayLog videoPlayLog) {
		this.videoPlayLog = videoPlayLog;
	}

	public VideoPlayLog getVideoPlayLog() {
		return videoPlayLog;
	}

}